-
Notifications
You must be signed in to change notification settings - Fork 197
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add SDL3 support #3339
base: master
Are you sure you want to change the base?
Add SDL3 support #3339
Conversation
- Improve button mapping and comments - Write SDL1 config in a different file
- Fix OGG playback (Wii uses tremor, playback is fine) - Prevent Fullscreen toggling via command when the setting is disabled Allowing fullscreen toggling messes up the rendering on WiiU
CMakeLists.txt
Outdated
elseif(${PLAYER_AUDIO_BACKEND} STREQUAL "AESND") | ||
target_sources(${PROJECT_NAME} PRIVATE | ||
src/platform/wii/audio.cpp | ||
src/platform/wii/audio.h) | ||
target_compile_definitions(${PROJECT_NAME} PUBLIC AUDIO_AESND=1) | ||
elseif(${PLAYER_AUDIO_BACKEND} STREQUAL ${PLAYER_TARGET_PLATFORM}) | ||
|
||
elseif(${PLAYER_AUDIO_BACKED} STREQUAL "OFF") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
At least this typo fixes the 3DS build :D
if(${PLAYER_TARGET_PLATFORM} STREQUAL "SDL3") | ||
if(${PLAYER_TARGET_PLATFORM} STREQUAL "Unset") | ||
get_property(PLAT_PROP CACHE PLAYER_TARGET_PLATFORM PROPERTY STRINGS) | ||
message(FATAL_ERROR "Please specify the target platform with -DPLAYER_TARGET_PLATFORM.\nOptions: ${PLAT_PROP}") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs documentation updates.
Also have to fix the CMake presets. Will add presets for at least SDL3 and SDL2 (if applicable) and a "default" preset where we can use a recommended default. Since inception of the presets this feature did not improve, so it will be more cartesian product preset generation (hooray). |
My last change before xmas is still compiling, so just opening a PR here for it.
Depends on the Wii SDL2 branch